import React  from 'react'

interface CopyProps {
  text: string;
}
const FcDemo: React.FC<CopyProps> = ({text,children})=>{

  const onCopy = () =>{
    console.log("我是使用React.Fc 创建的函数");
  }
  return (<>
  <span onClick={onCopy}>
    {text}
  </span>
  </>)
}

export default FcDemo
